Shopping Cart

Cart

Methods (param action)

  • Add – add a new product to cart
  • Update – update QTY to a new QTY
  • Remove – decrease QTY by 1. Stock controlled.
  • Increment – increase QTY by 1. Not stock controlled.
  • Repeat - creates a new order from an old order
  • Clear – free stock allocation / throw away order
  • AddCoupon – add a coupon to cart by code 
  • RemoveAll – free stock allocation / remove all items from cart 

Accepts an array of items in a single Add, allowing you to add a product with linked components; or simply to add many items at once.

If an order has not been started then a new order is created.

Required

Qty – Integer

Item – Integer, the master_id of product/item. (Cart will find the current id if the product/item is versioned, and will link to the current version {product_id}.)

Optional

Price

GST

Variant_ID

VariantTable

Product_Title 

ProductTable 

IsDigital 

IsPack 

IsRSVP

IsLocked – if true, item cannot be removed (is usually linked to parent item which can be removed. Used for Bundles or Linked items.)

IsLinked – If true, item is linked to the last removable item just added to the cart.

IsSep – If true, and QTY > 0, then one line item is created with QTY=1  for the total QTY being added

IsBlank – If true insert a blank specification for each item

Not_Removable 

LinkRule – Set to 1 for first item to start linking to.

Freight

Other

IsBundle – looked up from product/item record. If true, then item becomes a note and the products in the bundle (products related to the product) are added as linked products.

ControlStock – always true for aurora_events, otherwise if field exists in product/item and is true

SKU – looked up from variant or product. If left four characters of SKU is GIFT then line item treated as a Gift Voucher.

 

comments powered by Disqus